Man Utd came from behind at half-time to beat Brentford at Old Trafford for the second season in a row and the win was vital for Erik ten Hag.